package com.accenture.adf.newcodington.module9.sample;

/**
 * 
 * LaserShow is about a special show in the New Codington Museum
 * 
 * Topic: Try-it on usage of default constructor and local variables
 * 
 * Instructions:
 * 1. Use 'LaserShow_TryIt1' as the starting point and make the following changes
 * 2. Change the class name to 'LaserShow_TryIt2' 
 * 3. Create a default or no argument constructor after main() method
 * 4. Print "Default constructor invoked" to console from default constructor
 * 5. Modify main() method to create an instance of 'LaserShow_TryIt2' using the default constructor
 * 
 */


public class LaserShow_TryIt2 {
	
	//Static fields
	private static final String showType;
	private static final String showName;
	
	static{
		showType = "Animated";
		showName = "LaserShow";
		System.out.println("Static block initialiazed.");
	}
	
	public static void main(String[] args){		
		System.out.println("Show Type: " + showType);
		System.out.println("Show Name: " + showName);

		// Try-it 2 - laserShow - is a local variable
		LaserShow_TryIt2 laserShow = new LaserShow_TryIt2();
	}
	
	// Try-it 2 - Generic constructor
	public LaserShow_TryIt2() {
		System.out.println("Default constructor invoked.");
	}
	// end Try-it 2
	
}
